// 流程模型查询参数
export interface FlowModelVo {
  id?: string
  key?: string
  name?: string
  category?: string
  description?: string
  tenantId?: string
}

// 流程模型详情
export interface ModelVo {
  id: string
  name: string
  key: string
  category: string
  xml: string
  description: string
  status: string
  suspended?: boolean
  processDefinitionId: string
  userFetchUrl?: string // 获取用户接口地址
  taskCallbackUrl?: string // 任务回调地址
}

// 流程表单
export interface ModelForm {
  id: string
  name: string
  category: string
  key: string
  description?: string
  userFetchUrl?: string
  taskCallbackUrl?: string
}

// 流程设计模型
export interface ModelDesignVo {
  id: string
  xml: string
}

// 分页结果
export interface PageResult<T> {
  list: T[]
  total: number
  size: number
  current: number
}

// 流程定义类型
export interface ProcessDefinitionVo {
  id: string
  key: string
  name: string
  version: number
  suspensionState: number
  resourceName: string
  diagramResourceName: string
  deploymentId: string
  deploymentTime: string | null
}

// XML返回类型
export interface XmlResponse {
  xml: string[]
  xmlStr: string
}
